import qrcodeTerminal from 'qrcode-terminal';

export default (qrcode, status) => {
  qrcodeTerminal.generate(qrcode, { small: true })  // show qrcode on console

  const qrcodeImageUrl = [
    'https://api.qrserver.com/v1/create-qr-code/?data=',
    encodeURIComponent(qrcode),
  ].join('')

  console.log(qrcodeImageUrl)
}